package com.wpg.demo.global;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 全局控制器
 * Created by Administrator on 2016/6/4.
 */
@Controller
public class GlobalController {

    @RequestMapping("/home")
    String home() {
        return "home";
    }

    @RequestMapping("/hello")
    @ResponseBody
    String hello() {
        return "Hello Spring Boot";
    }

}
